package com.yanqu.road.server.cmd.wingroom.shareevent;

import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.command.Command;
import com.yanqu.road.server.manger.wingroom.WingRoomMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.GameProtocol;
import io.netty.channel.ChannelHandlerContext;

/**
 * @author ：zfr
 * @date ：2022/3/25 11:56
 */
@Cmd(code = GameProtocol.S_WING_ROOM_CROSS_NOTIFY_SYNC_EVENT, desc = "跨服通知同步事件")
public class CrossNotifySyncEventCmd implements Command {
    @Override
    public void execute(ChannelHandlerContext ctx, YanQuMessage packet) throws Exception {
        WingRoomMgr.syncAllEventToCross(true);
    }
}
